﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using HotelManagement.DAO;
using HotelManagement.DTO;

namespace HotelManagement.BLO
{
    class RoomTypeBLO
    {
        private RoomTypeDAO dao;
        public RoomTypeDAO Dao
        {
            get { return dao; }
            set { dao = value; }
        }

        public RoomTypeBLO()
        {
            dao = new RoomTypeDAO();
        }

        public bool Insert(RoomTypeDTO roomType)
        {
            return dao.Insert(roomType);
        }

        public bool Update(RoomTypeDTO roomType)
        {
            return dao.Update(roomType);
        }

        public DataTable Select()
        {
            return dao.Select();
        }
        public RoomTypeDTO SelectARoomType(int pId)
        {
            return dao.SelectARoomType(pId);
        }
        public int SelectLastInsertID()
        {
            return dao.SelectLastInsertID();

        }
    }
}
